dc082be15a5b9572f4c4e1c9af6bdaf1ebefaa07,gdx/src/com/badlogic/gdx/graphics/glutils/VertexBufferObjectSubData.java,VertexBufferObjectSubData,bind,#ShaderProgram#number[]#,162
Before Change
if (location < 0) continue;
shader.enableVertexAttribute(location);
if (attribute.usage == Usage.ColorPacked)
shader.setVertexAttribute(location, attribute.numComponents, GL20.GL_UNSIGNED_BYTE, true, attributes.vertexSize,
attribute.offset);
else
shader.setVertexAttribute(location, attribute.numComponents, GL20.GL_FLOAT, false, attributes.vertexSize,
attribute.offset);
}
} else {
for (int i = 0; i < numAttributes; i++) {
final VertexAttribute attribute = attributes.get(i);
final int location = locations[i];
if (location < 0) continue;
shader.enableVertexAttribute(location);
if (attribute.usage == Usage.ColorPacked)
shader.setVertexAttribute(location, attribute.numComponents, GL20.GL_UNSIGNED_BYTE, true, attributes.vertexSize,
attribute.offset);
else
shader.setVertexAttribute(location, attribute.numComponents, GL20.GL_FLOAT, false, attributes.vertexSize,
attribute.offset);
}
}
isBound = true;
After Change
if (location < 0) continue;
shader.enableVertexAttribute(location);
shader.setVertexAttribute(location, attribute.numComponents, attribute.type, attribute.normalized, attributes.vertexSize,
attribute.offset);
}
} else {
for (int i = 0; i < numAttributes; i++) {
final VertexAttribute attribute = attributes.get(i);
final int location = locations[i];
if (location < 0) continue;
shader.enableVertexAttribute(location);
shader.setVertexAttribute(location, attribute.numComponents, attribute.type, attribute.normalized, attributes.vertexSize,
attribute.offset);
}
}
isBound = true;